﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Produce.Infrastructure.Migrations
{
    public partial class 妊检管理 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Pregnant",
                columns: table => new
                {
                    PreId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    PreResult = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PreWay = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Earbugles = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PreNumber = table.Column<int>(type: "int", nullable: true),
                    Pregnancy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CurrentCottage = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CurrentFieldName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    TransferCottage = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    TransferFieldName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PersonCharge = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Pregnant", x => x.PreId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Pregnant");
        }
    }
}
